<template>
	<div class="home-container">
		<!-- 轮播图 -->
		<mt-swipe :auto="4000">
			<mt-swipe-item v-for="item in images" :key="item.url">
				<img :src="item"/>
        </mt-swipe-item>
    </mt-swipe>
    <!-- 6宫格 -->
    <ul class="mui-table-view mui-grid-view mui-grid-9">
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/newslist">
		                    <span class="mui-icon mui-icon-home"></span>
		                    <div class="mui-media-body">新闻咨询</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="/home/images">
		                    <span class="mui-icon mui-icon-email"><span class="mui-badge">5</span></span>
		                    <div class="mui-media-body">图片分享</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <span class="mui-icon mui-icon-chatbubble"></span>
		                    <div class="mui-media-body">商品购买</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <span class="mui-icon mui-icon-location"></span>
		                    <div class="mui-media-body">留言反馈</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <span class="mui-icon mui-icon-search"></span>
		                    <div class="mui-media-body">视频专区</div></router-link></li>
		            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><router-link to="#">
		                    <span class="mui-icon mui-icon-phone"></span>
		                    <div class="mui-media-body">联系我们</div></router-link></li>
		        </ul> 
    </div>
</template>
<script>
export default {
    data(){
        return {
            images:['https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578376898241&di=085434f64d0f13ccb95f378d8ef6f6b7&imgtype=0&src=http%3A%2F%2Fimage.biaobaiju.com%2Fuploads%2F20180917%2F22%2F1537193274-diLswpUDbH.jpg'
            ,
            'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578376898241&di=5c0c1c6c1f1fcc7db67ac0397448f1d5&imgtype=0&src=http%3A%2F%2Fimg.pconline.com.cn%2Fimages%2Fupload%2Fupc%2Ftx%2Fwallpaper%2F1212%2F12%2Fc0%2F16543373_1355292820262.jpg'
            ,
            'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1578376898241&di=3deec4fb86e9927140e61ea04409e7ca&imgtype=0&src=http%3A%2F%2Fimg.pconline.com.cn%2Fimages%2Fupload%2Fupc%2Ftx%2Fwallpaper%2F1305%2F03%2Fc0%2F20496484_1367549048821.jpg'
            ]
        };
    },
    created(){
        this.getLunbotu()
    },
    methods:{
        getLunbotu(){
            // this.$http.get('http://www.baidu.com').then(result=>{
            //     console.log(result);
            // })
        }
    }
}
</script>
<style lang="scss" scoped>
    .app-container{
        padding-top: 40px;
    }
    .mint-swipe-item{
        img{
            height: 100%;
            width: 100%;
            border: 2px solid #DD5C39;
            box-sizing:border-box;
        }
    }
    .mint-swipe{
        height: 200px;
        .mint-swipe-item{
            &:nth-child(1){
                background-color: rgb(70, 218, 149);
            }
            &:nth-child(2){
                background-color: rgb(189, 221, 46);
            }
            &:nth-child(3){
                background-color: rgb(221, 46, 154);
            }
        }
    }
    .mui-grid-view.mui-grid-9 {
         background-color: #fff;
    }
    .mui-grid-view.mui-grid-9 .mui-table-view-cell{
         border-right:0px; 
         border-bottom:0px;
    }
</style>